package com.sxkiler.demo.seata.service.xa;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

public interface XAAccountService {
    /**
     * 扣除余额
     *
     * @param userId 用户编号
     * @param amount  扣减金额
     * @throws Exception 失败时抛出异常
     */
    boolean reduceBalance(Long userId, Integer amount) throws Exception;
}
